package ch6;

import java.util.Scanner;

public class PhoneCheap {

	public static void main(String[] args) {
		double[] ar = new double[5];
		// double min = ar[0];
		Scanner in = new Scanner(System.in);
		System.out.println("输入手机的价格：");
		for (int i = 0; i < ar.length; i++) {
			ar[i] = in.nextDouble();
		}
		double min = ar[0];
		for (int i = 1; i < ar.length; i++) {
			if (ar[i] < min)
				min = ar[i];
		}
		System.out.println("5家店的最便宜的是：" + min + "元");
	}

}
